package argirithm;

public class Demo04 {
    public static void main(String[] args) {
        int[] count = new int[26];
        String str = "ASDASDASDASD";
        for (int i = 0; i <str.length() ; i++) {
            char c = str.charAt(i);
            if (c>='A'&&c<='Z'){
                count[c-'A']++;
            }
        }
        for (char c='A';c<='Z';c++){
            System.out.println(c+":"+count[c-'A']);
        }
    }
}
